package com.hodgepodge.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.hodgepodge.api.mapper")
@ComponentScan(basePackages = {
        "com.hodgepodge.admin",
        "com.hodgepodge.api.service",
        "com.hodgepodge.config",
        "com.hodgepodge.commons.exception"
})
@SpringBootApplication
@EnableTransactionManagement
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }

}
